package com.shop.front.vo.store;

import com.alibaba.fastjson.annotation.JSONField;
import com.shop.domain.user.User;
import com.shop.jpa.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 订单商品用户详情表
 *
 * @Author Administrator
 * @Date 2024/4/22 15:43
 * @Version 1.0
 */
@ApiModel("StoreOrderUserDetailVo 实体类")
@Data
public class StoreOrderUserDetailVo extends BaseDomain implements Serializable {

    @ApiModelProperty(value = "id", hidden = true)
    @Id
    @JSONField(serialize = false)
    private Long id;

    /**
     * 订单号
     */
    @ApiModelProperty("订单号")
    private String orderNo;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    @Column(name = "uid")
    @JSONField(serialize = false)
    private Long uid;

    /**
     * 订单商品总数
     */
    @ApiModelProperty("订单商品总数")
    @Column(name = "total_num")
    private Integer totalNum;

    /**
     * 订单总价
     */
    @ApiModelProperty("订单总价")
    @Column(name = "total_price")
    private BigDecimal totalPrice;

    /**
     * 邮费
     */
    @ApiModelProperty("邮费")
    @Column(name = "total_postage")
    private BigDecimal totalPostage;

    /**
     * 实际支付金额
     */
    @ApiModelProperty("实际支付金额")
    @Column(name = "pay_price")
    private BigDecimal payPrice;


    @ApiModelProperty("订单商品清单")
    @Transient
    private StoreOrderCartInfoVo orderCartInfoObj;

    @ApiModelProperty("用户信息")
    @Transient
    private User user;


}
